package com.fuershiye.woman.monitor.service;

import com.fuershiye.woman.monitor.beans.Page;
import com.fuershiye.woman.monitor.beans.ViewUser;
import com.fuershiye.woman.monitor.beans.ViewUserTel;
import com.fuershiye.woman.monitor.model.User;

import java.util.List;

/**
 * @author yongyongdong
 *
 */
public interface AdminService {

    void save(User admin);

    User get(Long id);

    User findByName(String username);

    User getByTel(String tel);

    List<ViewUser> listByCondition(String name, int status, Page page);

    List<ViewUserTel> getSameAreaUserByAreaid(Long areaid);

    int countByCondition(String name, int status);

}
